<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card>
            <!-- 第一个card -->
            <Detail title="总销售额" count="￥126560">
                <template slot="charts">
                   <span>周同比&nbsp;&nbsp;56.67% <i class="el-icon-caret-top" style="color:red"></i></span>
                   <span>&nbsp;&nbsp;&nbsp;日同比&nbsp;&nbsp;&nbsp;19.96%&nbsp;&nbsp;<i class="el-icon-caret-bottom" style="color:greenyellow"></i></span>
                </template>
                <template slot="footer">
                    <span>日销售额￥&nbsp;12423</span>
                </template>
            </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
            <!-- 第二个card -->
            <Detail title="访问量" count="88460">
                <template slot="charts">
                    <lineCharts></lineCharts>
                </template>
                <template slot="footer">
                    <span class="footer-value">日访问量&nbsp;1234</span>
                </template>
            </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
            <!-- 第三个card -->
            <Detail title="支付笔数" count="88460">
                <template slot="charts">
                    <barCharts></barCharts>
                </template>
                <template slot="footer">
                    <span>转换率&nbsp;64%</span>
                </template>
            </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
            <!-- 第四个card -->
            <Detail title="运营活动效果" count="78%">
                <template slot="charts">
                    <progressCharts></progressCharts>
                </template>
                <template slot="footer">
                   <span>周同比&nbsp;&nbsp;56.67% <i class="el-icon-caret-top" style="color:red"></i></span>
                   <span>&nbsp;&nbsp;&nbsp;日同比&nbsp;&nbsp;&nbsp;19.96%&nbsp;&nbsp;<i class="el-icon-caret-bottom" style="color:greenyellow"></i></span>
                </template>
            </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from "./Detail";
import lineCharts from './lineCharts'
import barCharts from './barCharts'
import progressCharts from './progressCharts'
export default {
  name: "Card",
  components: {
    Detail,
    lineCharts,
    barCharts,
    progressCharts,
  },
};
</script>

<style scoped>
.footer-value{
  margin-left: -18px;
}
</style>